package com.TeaManage.bean;

import java.util.Date;

public class CartItem {
    private Integer id;
    private Integer tea_id;
    private Integer cart_id;
    private String quantity;
    private String price;
    private Integer selected;
    private Date added_at;
    private Tea tea; // 茶叶信息，用于显示

    public CartItem() {
    }

    public CartItem(Integer id, Integer tea_id, Integer cart_id, String quantity, String price, Integer selected, Date added_at) {
        this.id = id;
        this.tea_id = tea_id;
        this.cart_id = cart_id;
        this.quantity = quantity;
        this.price = price;
        this.selected = selected;
        this.added_at = added_at;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return tea_id
     */
    public Integer getTea_id() {
        return tea_id;
    }

    /**
     * 设置
     * @param tea_id
     */
    public void setTea_id(Integer tea_id) {
        this.tea_id = tea_id;
    }

    /**
     * 获取
     * @return cart_id
     */
    public Integer getCart_id() {
        return cart_id;
    }

    /**
     * 设置
     * @param cart_id
     */
    public void setCart_id(Integer cart_id) {
        this.cart_id = cart_id;
    }

    /**
     * 获取
     * @return quantity
     */
    public String getQuantity() {
        return quantity;
    }

    /**
     * 设置
     * @param quantity
     */
    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取
     * @return price
     */
    public String getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(String price) {
        this.price = price;
    }

    /**
     * 获取
     * @return selected
     */
    public Integer getSelected() {
        return selected;
    }

    /**
     * 设置
     * @param selected
     */
    public void setSelected(Integer selected) {
        this.selected = selected;
    }

    /**
     * 获取
     * @return added_at
     */
    public Date getAdded_at() {
        return added_at;
    }

    /**
     * 设置
     * @param added_at
     */
    public void setAdded_at(Date added_at) {
        this.added_at = added_at;
    }

    /**
     * 获取
     * @return tea
     */
    public Tea getTea() {
        return tea;
    }

    /**
     * 设置
     * @param tea
     */
    public void setTea(Tea tea) {
        this.tea = tea;
    }

    public String toString() {
        return "CartItem{id = " + id + ", tea_id = " + tea_id + ", cart_id = " + cart_id + ", quantity = " + quantity + ", price = " + price + ", selected = " + selected + ", added_at = " + added_at + "}";
    }
}
